<form id="record-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="alert alert-warning-light">
        重要提示：

        <p>1.请下载模板，进行多条录入！<a style="color: blue;" href="/uploads/sn/demo.xlsx">模板</a></p>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('接收机构')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_id" data-rule="required" data-source="company/index" data-params='{"custom[pid]":"0"}' class="form-control selectpage" name="row[company_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required" data-source="product/index" class="form-control selectpage" name="row[product_id]" type="text" value="">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('政策')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <select name="row[policy_id]" data-rule="required" id="c-policy_id" style="height:30px;" class="form-control selectpicker"></select>-->
<!--&lt;!&ndash;            <input id="c-policy_id" data-rule="required" data-source="policy/index" data-order-by="id" data-field="title" data-params='{"custom[main_type]":"0","custom[main_id]":"0"}' class="form-control selectpage" name="row[policy_id]" type="text" value="">&ndash;&gt;-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('数据类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[type]-1"><input class="types" id="row[type]-1" name="row[type]" type="radio" value="1" checked /> 批量</label>
                <label for="row[type]-2"><input class="types" id="row[type]-2" name="row[type]" type="radio" value="2" /> 单个</label>
            </div>
        </div>
    </div>
    <div class="form-group" id="file_url" style="display: block;">
        <label for="c-file_url" class="control-label col-xs-12 col-sm-2">SN号:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-file_url" class="form-control" size="50" name="row[file_url]" type="text" value="" readonly>
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-url="ajax/uploadFile" data-input-id="c-file_url" data-mimetype=".xls,.xlsx" data-multiple="false" data-preview-id="p-file_url"><i class="fa fa-upload"></i> 上传</button></span>
<!--                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>-->
                </div>
                <span class="msg-box n-right" for="c-file_url"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-file_url"></ul>
        </div>
    </div>
    <div class="form-group" id="sn" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('SN号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sn" class="form-control" name="row[sn]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="remark" name="row[remark]"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
